Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove implicit Enabled attribute #1898

Merged

Conversation

ml019
Copy link
Contributor

@ml019 ml019 commented Dec 25, 2021

Intent of Change

  • Refactor (non-breaking change which improves the structure or operation of the implementation)

Description

  • remove the behaviour where an Enabled attribute was added by default to composite objects
  • remove use of the InihibitEnabled attribute to suppress the default behaviour
  • add explicit Enabled attributes where they are currently expected by code
  • extend the isPresent macro to throw an error if it doesn't find an Enabled attribute
  • restrict the specification of attributes for composite object to use the full object based notation, removing the support for string based attributes.

Motivation and Context

Part of #1894

How Has This Been Tested?

Local template generation

Related Changes

Prerequisite PRs:

  • None

Dependent PRs:

Consumer Actions:

  • None

- remove the behaviour were an `Enabled` attribute was added
by default to composite objects
- remove use of the `InihibitEnabled` attribute to suppress
the default behaviour
- add explicit `Enabled` attributes where they are currently
expected by code
- extend the `isPresent` macro to throw an error if it doesn't
find an `Enabled` attribute isPresent
- restrict the specification of attributes for composite object
to use the full object based notation, removing the support for
string based attributes.
Add `Enabled` attributes required to run the Azure test suite.

Also correct the README in regards to running the unit tests.
@roleyfoley roleyfoley merged commit f196a6d into hamlet-io:master Dec 27, 2021
@ml019 ml019 deleted the refactor-remove-default-enabled-attribute branch January 3, 2022 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants